public class Token {
    private TokenType tokenType;
    private String word;
    private Integer row;
    private Integer beginCol;
    private Integer endCol;


    public Token(TokenType tokenType, String word) {
        this.tokenType = tokenType;
        this.word = word;
    }


    public TokenType getTokenType() {
        return tokenType;
    }

    public void setTokenType(TokenType tokenType) {
        this.tokenType = tokenType;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public Integer getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }

    public Integer getBeginCol() {
        return beginCol;
    }

    public void setBeginCol(Integer beginCol) {
        this.beginCol = beginCol;
    }

    public Integer getEndCol() {
        return endCol;
    }

    public void setEndCol(Integer endCol) {
        this.endCol = endCol;
    }


    @Override
    public String toString() {
        return "Token{" +
                "tokenType=" + tokenType +
                ", word='" + word + '\'' +
                ", row=" + row +
                ", beginCol=" + beginCol +
                ", endCol=" + endCol +
                '}';
    }


}
